#ifndef __CCONFIGMANAGER_H__
#define __CCONFIGMANAGER_H__

#include "include/IConfigManager.h"

#define DEFAULT_SEC         "DefaultSec"

class CConfigManager : public IConfigManager
{
protected:
    std::map<stringc,stringc> configmap;
    stringc actualsection;
public:
    CConfigManager();
    virtual ~CConfigManager();

    virtual void SetActualSection(stringc Section);
    virtual stringc GetActualSection();

    virtual bool ReadFile(stringc File);

    virtual s32 GetVarAsInt(stringc SubSection,stringc Name);
    virtual f32 GetVarAsFloat(stringc SubSection,stringc Name);
    virtual stringc GetVarAsString(stringc SubSection,stringc Name);
};

#endif

